import TextComponent from './index.vue'

// 自定义 withInstall 函数
const withInstall = (comp) => {
    comp.install = (app) => {
        app.component(comp.name || comp.__name, comp)
    }
    return comp
}

// 支持`Tooltip`提示的文本省略组件
export const ReText = withInstall(TextComponent)

export default ReText